package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.EnvironmentFaclity;
import tech.aistar.mapper.EnvironmentFacilityMapper;
import tech.aistar.service.IEnvironmentFacilityService;

import java.util.List;


@Service
public class EnvironmentFacilityImpl implements IEnvironmentFacilityService {
    @Autowired
    private EnvironmentFacilityMapper environmentFacilityMapper;
    @Override
    public List<EnvironmentFaclity> selectAll() {
        return environmentFacilityMapper.selectAll();
    }

    @Override
    public void insert(EnvironmentFaclity environmentFaclity) {
        environmentFacilityMapper.insert(environmentFaclity);
    }

    @Override
    public void updateByPrimaryKey(EnvironmentFaclity environmentFaclity) {
environmentFacilityMapper.updateByPrimaryKey(environmentFaclity);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
environmentFacilityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Integer> selectByAll(EnvironmentFaclity environmentFaclity) {
        return environmentFacilityMapper.selectByAll(environmentFaclity);
    }

    @Override
    public EnvironmentFaclity findById(Integer integer) {
        return environmentFacilityMapper.findById(integer);
    }

    @Override
    public EnvironmentFaclity findByhouseId(Integer integer) {
        return environmentFacilityMapper.findByhouseId(integer);
    }
}
